package com.niit.beans;

import java.util.List;

public class User {// 宿主类
    private int id;

    public User(int id, List<String> address, Dept dept) {
        this.id = id;
        this.address = address;
        this.dept = dept;
    }

    public int getId() {
        return id;
    }
    private List<String> address;

    private Dept dept;

    public void teamwork(){
        dept.teambuilding();
        for(String add:address){
            System.out.println(add);
        }
    }
}
